package com.lcw.lostandfound.mapper;

import com.lcw.lostandfound.pojo.Category;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author lcw
 */
@Mapper
@Repository
public interface CategoryMapper {

    List<Category> findAllCategory();

    int deleteById(Integer id);
    int addCategory(Category category);
    List<String> queryCategoryNames(@Param("ids") List<String> ids);

    String queryCategoryName(String id);
}
